// store.ts
import { create } from 'zustand';
import { AgentStore } from './type'


const agentStore = create<AgentStore>(set => ({
    // 用户输入
    Userinput: '',
    // 是否为直接询问
    Askdirectly: false,
    // 上传文件列表
    FileObj: {
        file_img_list: [],
        file_list: []
    }, 

    
    setUserInput: (input) => set(() => ({ Userinput: input })),
    setAskdirectly: (askdirectly) => set(() => ({ Askdirectly: askdirectly })),
    setFileObj: (fileobj: any) => set(() => ({ FileObj: fileobj })), 
}));

export default agentStore;